                            <? $frmtime = time(); ?>
                            <div class="main">
                                <h3 class="title"><?=$clabel?> &raquo; <?=$mlabel?></h3>
                                <div class="formdiv">
                                    <form method="POST" id="frmEditVehicleStaff<?=$frmtime?>">
                                        <table class="detail">                                            
                                            <? if( isset($errors) && is_array($errors) ) {
                                               foreach($errors as $error) {
                                               ?>
                                            <tr>
                                                <td class="errormsg" colspan="3">
                                                    <?=$error?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  ?>
                                            <? if( isset($successes) ) {
                                               foreach($successes as $success) {
                                               ?>
                                            <tr>
                                                <td class="successmsg" colspan="3">
                                                    <?=$success?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  ?>
                                            <tr>
                                                <td colspan="3">
                                                    <h2><?=$vs_name?></h2>    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Staff ID</label></td>
                                                <td colspan="2" width="400">
                                                    <?=$vs_id?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Name</label></td>
                                                <td  colspan="2">
                                                    <?=$vs_name?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Staff Type</label></td>
                                                <td  colspan="2">
                                                    <?=$vst_name?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Joining Date</label></td>
                                                <td colspan="2">
                                                    <?=$vs_joining_date?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Nationality</label></td>
                                                <td colspan="2">
                                                    <?=$name?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Date of Birth</label></td>
                                                <td colspan="2">
                                                    <?=$vs_dob?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Email</label></td>
                                                <td colspan="2">
                                                    <?=$vs_email?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Address</label></td>
                                                <td colspan="2" height="140px">
                                                    <?=$vs_address?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Mobile</label></td>
                                                <td colspan="2">
                                                    <?=$vs_mobile?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Phone</label></td>
                                                <td colspan="2">
                                                    <?=$vs_phone?>
                                                </td>
                                            </tr>                                            
                                            <tr>
                                                <td><label>RP No.</label></td>
                                                <td colspan="2">
                                                    <?=$vs_rp_no?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>RP Expiry</label></td>
                                                <td colspan="2">
                                                    <?=$vs_rp_expiry?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Sponsor Name</label></td>
                                                <td colspan="2">
                                                    <?=$vs_sponsor_name?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>License No.</label></td>
                                                <td colspan="2">
                                                    <?=$vs_license_no?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>License Expiry</label></td>
                                                <td colspan="2">
                                                    <?=$vs_license_expiry?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Status</label></td>
                                                <td colspan="2">
                                                    <?=$ss_name?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Date of Leaving</label></td>
                                                <td colspan="2">
                                                    <?=$vs_leaving_date?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><label>Reason for Leaving</label></td>
                                                <td colspan="2" height="140px">
                                                    <?=$vs_leaving_reason?>
                                                </td>
                                            </tr>
                                        	<tr>
                                        		<td></td>
                                        		<td colspan="2">
                                                    <input type="hidden" name="vs_id" value="<?=$vs_id?>"/>
                                                    <input class="button" type="submit" name="btnEditVehicleStaff" value="Edit" id="btnEditVehicleStaff" />
                                                </td>
                                        	</tr>
                                        </table>
                                	</form>
                                    <script language="javascript" type="text/javascript">
                                        if(typeof jQuery == 'undefined') {
                                            alert('Invalid Request');
                                            window.location = "/";
                                        }
                                        $(document).ready( function() {
                                            $("#frmEditVehicleStaff<?=$frmtime?>").validate({
                                                errorPlacement: function(error, element) {
                                                    placeError(error, element);
                                                },
                                                submitHandler: function(form) {
                                                    var cui = $('#contenttabs .ui-tabs-panel:visible');                                                                                                        
                                               	    var jqxhr = $.post(
                                                        "/transport/editvehiclestaff", 
                                                        $("#frmEditVehicleStaff<?=$frmtime?>").serialize(), 
                                                        function (data) {
                                                            $(cui).html(data);
                                                        }
                                                    );
                                                    $(cui).html('<div id="loadingdiv"><div class="centerdiv"><strong>Processing</strong><br/><img src="/images/ajaxloader.gif" /></div></div>');
                                                }
                                            });
                                        });
                                    </script>
                                 </div>
                            </div>